STEP 8: Let's change our program to use a loop.

Remember, commands that are INSIDE a loop have a purple block next to them, like this: ····
Any command that we want to be part of the loop needs to be indented underneath the loop code.

  • Click on the LOGIC tab and then go to . Drag out Loop with Range.
  • In SUBJECT, go to and drag out Turn and Move . Drop it so that it's INSIDE the for loop.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)